package com.phoenix.jsef.framework.accessfilter;

/**
 * @version V1.0
 * @ClassName: AccessFilterBetweenItem
 * @Description:TODO()
 * @author: 李启联
 * @date: 2018-08-17 15:06
 * @Copyright: Copyright (c), 2018-2018
 * 申明：本内容未经作者本人同意,禁止外泄以及用于其他的商业项目.
 */
class AccessFilterBetweenItem extends AccessFilterItem {
    protected Object filterValue2;

    public Object getFilterValue2() {
        return filterValue2;
    }

    AccessFilterBetweenItem(boolean andCondition, String filterKey, Object filterValue, Object filterValue2) {
        super(andCondition, filterKey, filterValue);
        this.filterValue2 = filterValue2;
    }

    @Override
    public String toString() {
        return ((andCondition) ? " AND " : " OR ") + filterKey + " BETWEEN " + "'" + filterValue + "'" + " AND " + "'" + filterValue2 + "'";
    }
}